package MainClass;

public class Displayer extends Thread
{
	Game game;
	Displayer()
	{
	   this.game =Game.GameBuilder();
	} // Displayer
	public void run()
	 {
	    int i=0;
		synchronized(game)
	    {
	    	while(true)
	    	{
	    		try {
	    				game.wait();
	    			} catch(InterruptedException ie)
	    			  {
	    					System.out.println("Exception: " + ie.getMessage());
	    			  } // catch
	    		game.PrintScreen();
	    		//System.out.println("In Displayer" + i++);
	        } // while
	    } // synchronized(grec)   
	 } // run
}

